<?php


namespace app\admin\controller;


use app\admin\service\RbacService;
use app\common\controller\CommonController;
use app\common\exception\ParameterFailedException;
use app\common\exception\NotFoundException;
use app\common\service\Lang;
use app\common\service\Redis;
use think\facade\Db;

class ConfigController extends CommonController
{
    public function getConfigList()
    {
        $res                              = [];
        $packagePrice                     = Redis::getStoreConfig('packagePrice');
        $orderPaymentTimedOutMaxTimestamp = Redis::getStoreConfig('orderPaymentTimedOutMaxTimestamp');
        $res                              = [
            'packagePrice'                     => $packagePrice,
            'orderPaymentTimedOutMaxTimestamp' => $orderPaymentTimedOutMaxTimestamp,
        ];
        return retJson(Lang::GETDone, $res);
    }

    public function putConfig()
    {
    }
}